package org.example.schoolbus.service.impl;

import org.example.schoolbus.mapper.InfoEditingMapper;
import org.example.schoolbus.service.InfoEditingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class InfoEditingServiceimpl  implements InfoEditingService {
    @Autowired
    private InfoEditingMapper infoEditingmapper;
    @Override
    public int InfoEditing(String username,String usersex,String userbirthday,String useraddress,String userphone,String useremail)
    {
        if(infoEditingmapper.InfoEditing(username,usersex,userbirthday,useraddress,userphone,useremail)>0)
        {//当更新成功时，返回大于0的数
            return 1;
        }
        return 0;
    }

}
